package com.example.el_exam.el_exam.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.HashMap;
import java.util.Map;

@RestController
@RequestMapping("exam/api")
public class HelloController {

    @GetMapping("/sys/user/logout")
    public Map<String, Object> logout() {
        Map<String, Object> result = new HashMap<>();
        result.put("msg", "请求成功！");
        result.put("code", 0);
        result.put("success", true);
        return result;
    }
}